<template>
  <div >
    <div class="title">周末去哪</div>
    <ul>
      <li class="item" v-for="item in list" :key="item.id">
        <div class="item-img-wrapper">
          <img
            class="item-img"
            :src="item.imgUrl"
            alt
          />
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  },
  data () {
    return {}
  }
}
</script>
<style scoped>
.title {

  line-height: 0.8rem;
  background: #eee;
  text-indent: 0.2rem;
}
.item-img-wrapper{
    padding-bottom: 37.09%;
    height: 0;
    overflow: hidden;
}
.item-img {
  width: 100%;
}

.item-info {
padding:.1rem;

}

.item-title {
  line-height: 0.40rem;
  font-size: 0.32rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.item-desc {
  line-height: 0.4rem;
  color: #cccccc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.item-button {
  background: #ff9300;
  line-height: 0.44rem;
  color: #fff;
  padding: 0 0.2rem;
  border-radius: 0.06rem;
  margin-top: 0.2rem;
  display: inline-block;
}
</style>
